package com.vcs.frm.web.form.js;

import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.Email;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;
import org.springframework.web.multipart.MultipartFile;


public class JobseekerRegFormBean {

	private String firstName;
	private String lastName;
	private String email;
	private String password;
	private String rePassword;
	
	private int currentLocation;
	private long phoneNumber;
	private int age;
	private String birthDate;

	// Address
	private String lineOne;
	private String lineTwo;
	private String lineThree;
	private String city;
	private String State;
	private int pincode;

	private MultipartFile resumeFile;	
	
	public JobseekerRegFormBean() {
		// TODO Auto-generated constructor stub
	}

	
	@Length(min = 1, max = 100, message="First Name is required")
	public String getFirstName() {
		return firstName;
	}

	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}

	@Length(min = 1, max = 100, message="Last Name is required")
	public String getLastName() {
		return lastName;
	}

	public void setLastName(String lastName) {
		this.lastName = lastName;
	}

	@NotNull(message = "Email is Required")
	@Email(regexp = "^[_A-Za-z0-9-]+(\\.[_A-Za-z0-9-]+)*@[A-Za-z0-9]+(\\.[A-Za-z0-9]+)*(\\.[A-Za-z]{2,})$", message = "Invalid Email address")
	public String getEmail() {
		return email;
	}
	
	public void setEmail(String email) {
		this.email = email;
	}
	
	@NotBlank(message = "Please enter password.")
	@Length(min = 8, max = 20, message = "Password should be 8 to 20 Characters long")
	public String getPassword() {
		return password;
	}
	
	public void setPassword(String password) {
		this.password = password;
	}
	
	@NotBlank(message = "Please re enter password.")
	@Length(min = 8, max = 20, message = "Password should be 8 to 20 Characters long")
	public String getRePassword() {
		return rePassword;
	}
	
	public void setRePassword(String rePassword) {
		this.rePassword = rePassword;
	}
	
	
	public int getCurrentLocation() {
		return currentLocation;
	}
	
	public void setCurrentLocation(int currentLocation) {
		this.currentLocation = currentLocation;
	}
	
	public long getPhoneNumber() {
		return phoneNumber;
	}
	
	public void setPhoneNumber(long phoneNumber) {
		this.phoneNumber = phoneNumber;
	}
	
	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}
	
	@Length(min = 8, message = "Please Enter Date of Birth")
	public String getBirthDate() {
		return birthDate;
	}
	
	public void setBirthDate(String birthDate) {
		this.birthDate = birthDate;
	}

	public String getLineOne() {
		return lineOne;
	}

	public void setLineOne(String lineOne) {
		this.lineOne = lineOne;
	}

	public String getLineTwo() {
		return lineTwo;
	}

	public void setLineTwo(String lineTwo) {
		this.lineTwo = lineTwo;
	}

	public String getLineThree() {
		return lineThree;
	}

	public void setLineThree(String lineThree) {
		this.lineThree = lineThree;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getState() {
		return State;
	}

	public void setState(String state) {
		State = state;
	}

	public int getPincode() {
		return pincode;
	}

	public void setPincode(int pincode) {
		this.pincode = pincode;
	}
	
	public MultipartFile getResumeFile() {
		return resumeFile;
	}
	
	public void setResumeFile(MultipartFile resumeFile) {
		this.resumeFile = resumeFile;
	}
}
